//! Unified API Framework
//! 
//! 一个统一的API框架，支持多种web服务器，提供统一的路由、认证和文档生成功能。

// 导出核心模块
pub mod auth;
pub mod routers;
pub mod middleware;
pub mod swagger;
pub mod auth_strategies;
pub mod macros;

// 重新导出主要组件
pub use auth::{AuthPolicy, AuthContext, AuthResult, AuthError};
pub use routers::{RouteInfo, RouteBuilder, Router};
pub use middleware::{Middleware, MiddlewareChain, AuthMiddleware};
pub use swagger::{SwaggerConfig, SwaggerGenerator};
pub use auth_strategies::{
    ApiKeyAuthPolicy, OAuth2AuthPolicy, LdapAuthPolicy, 
    DatabaseAuthPolicy, CompositeAuthPolicy, DatabaseAuthRepository
};

#[cfg(test)]
mod tests;